# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-object-multitype
pkgver=0.05
pkgrel=13
pkgdesc="Perl/CPAN Module Object::MultiType"
arch=("any")
url="https://search.cpan.org/dist/Object-MultiType"
license=("GPL" "PerlArtistic")
source=("https://www.cpan.org/authors/id/G/GM/GMPASSOS/Object-MultiType-$pkgver.tar.gz")
sha256sums=('aa65390e0120dfe98e8a2c510a81adc5d3e42efa3e13d54e85467303d911bf31')

build() {
  cd "$srcdir"/Object-MultiType-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Object-MultiType-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
